package com.comut.crud.pojo.mobile;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Issue: IFL-1569
 *
 * @author vitor
 */
@XmlRootElement()
@XmlAccessorType(XmlAccessType.FIELD)
public class DriverInfo implements Serializable {
    /*
     XmlElement used to reduce the names for each field in the serialized JSON/XML document
     */

    //@XmlElement(name = "id")
    private int idDriver;
    //@XmlElement(name = "in")
    private String internalNumber;
    //@XmlElement(name = "nm")
    private String name;
    //@XmlElement(name = "tg")
    private String tag;
    //@XmlElement(name = "cn")
    private String cardNumber;
    //@XmlElement(name = "pn")
    private int position;
    //@XmlElement(name = "se")
    private int state;
    //@XmlElement(name = "ve")
    private int vehicle;
    //@XmlElement(name = "ldr")
    private long lastDailyRest;
    //@XmlElement(name = "lwr")
    private long lastWeeklyRest;
    //@XmlElement(name = "rnr")
    private int reducedNumberOfRests;
    //@XmlElement(name = "nerp")
    private int numberOfExtendedRestPeriods;
    //@XmlElement(name = "dtcj")
    private long drivingTimeCurrentJourney;
    //@XmlElement(name = "dtcw")
    private long drivingTimeCurrentWeek;
    //@XmlElement(name = "dtcf")
    private long drivingTimeCurrentForthnight;

    /**
     * @return the idDriver
     */
    public int getIdDriver() {
        return idDriver;
    }

    /**
     * @param idDriver the idDriver to set
     */
    public void setIdDriver(int idDriver) {
        this.idDriver = idDriver;
    }

    /**
     * @return the internalNumber
     */
    public String getInternalNumber() {
        return internalNumber;
    }

    /**
     * @param internalNumber the internalNumber to set
     */
    public void setInternalNumber(String internalNumber) {
        this.internalNumber = internalNumber;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the tag
     */
    public String getTag() {
        return tag;
    }

    /**
     * @param tag the tag to set
     */
    public void setTag(String tag) {
        this.tag = tag;
    }

    /**
     * @return the cardNumber
     */
    public String getCardNumber() {
        return cardNumber;
    }

    /**
     * @param cardNumber the cardNumber to set
     */
    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    /**
     * @return the position
     */
    public int getPosition() {
        return position;
    }

    /**
     * @param position the position to set
     */
    public void setPosition(int position) {
        this.position = position;
    }

    /**
     * @return the state
     */
    public int getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(int state) {
        this.state = state;
    }

    /**
     * @return the vehicle
     */
    public int getVehicle() {
        return vehicle;
    }

    /**
     * @param vehicle the vehicle to set
     */
    public void setVehicle(int vehicle) {
        this.vehicle = vehicle;
    }

    /**
     * In milliseconds since 1970 UTC
     *
     * @param lastDailyRest
     */
    public void setLastDailyRest(long lastDailyRest) {
        this.lastDailyRest = lastDailyRest;
    }

    public long getLastDailyRest() {
        return this.lastDailyRest;
    }

    public void setLastWeeklyRest(long lastWeeklyRest) {
        this.lastWeeklyRest = lastWeeklyRest;
    }

    /**
     * In milliseconds since 1970 UTC
     *
     * @return
     */
    public long getLastWeeklyRest() {
        return this.lastWeeklyRest;
    }

    public void setReducedNumberOfRests(int reducedNumberOfRests) {
        this.reducedNumberOfRests = reducedNumberOfRests;
    }

    public int setReducedNumberOfRests() {
        return this.reducedNumberOfRests;
    }

    public void setNumberOfExtendedRestPeriods(int numberOfExtendedRestPeriods) {
        this.numberOfExtendedRestPeriods = numberOfExtendedRestPeriods;
    }

    public int getNumberOfExtendedRestPeriods() {
        return this.numberOfExtendedRestPeriods;
    }

    public void setDrivingTimeCurrentJourney(long drivingTimeCurrentJourney) {
        this.drivingTimeCurrentJourney = drivingTimeCurrentJourney;
    }

    public long getDrivingTimeCurrentJourney() {
        return this.drivingTimeCurrentJourney;
    }

    public void setDrivingTimeCurrentWeek(long drivingTimeCurrentWeek) {
        this.drivingTimeCurrentWeek = drivingTimeCurrentWeek;
    }

    public long getDrivingTimeCurrentWeek() {
        return this.drivingTimeCurrentWeek;
    }

    public void setDrivingTimeCurrentForthnight(long drivingTimeCurrentForthnight) {
        this.drivingTimeCurrentForthnight = drivingTimeCurrentForthnight;
    }

    public long getDrivingTimeCurrentForthnight() {
        return this.drivingTimeCurrentForthnight;
    }
}
